package com.springframework.autowire_t;

import com.springframework.autowire_t.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AutowireRun {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("com.springframework/autowire_t/bean.xml");
        UserController userController = context.getBean("userController", UserController.class);
        userController.userController();
    }
}
